package demo.xlj.yuyi.studentapp.myadapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import demo.xlj.yuyi.studentapp.R;
import demo.xlj.yuyi.studentapp.bean.LookHuoDongBean;

/**
 * 作者：项路俊 on 2018/3/23 0023
 * 邮箱：ThanksForCode@gmail.com
 * 介绍：
 */

public class MyHuoDongShenAdapter extends BaseQuickAdapter<LookHuoDongBean.InfoBean, BaseViewHolder> {
    public MyHuoDongShenAdapter(@LayoutRes int layoutResId, @Nullable List<LookHuoDongBean.InfoBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, LookHuoDongBean.InfoBean item) {
        helper.setText(R.id.TextView_RecyclerView_Title, item.getContent());
        helper.setText(R.id.TextView_RecyclerView_Time, item.getTime());
    }
}
